package com.ruoyi.customerSample.service.impl;


import com.ruoyi.customerSample.domain.InspectedUnitEqu;
import com.ruoyi.customerSample.mapper.InspectedUnitEquMapper;
import com.ruoyi.customerSample.service.IInspectedUnitEquService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * 受检单位设备信息Service业务层处理
 * 
 * @author luguanqing
 * @date 2020-11-16
 */
@Service
public class InspectedUnitEquServiceImpl implements IInspectedUnitEquService
{
    @Autowired(required = false)
    private InspectedUnitEquMapper inspectedUnitEquMapper;

    /**
     * 查询受检单位设备信息
     * 
     * @param id 受检单位设备信息ID
     * @return 受检单位设备信息
     */
    @Override
    public InspectedUnitEqu selectInspectedUnitEquById(String id)
    {
        return inspectedUnitEquMapper.selectInspectedUnitEquById(id);
    }

    /**
     * 根据多个id查设备信息
     * @param ids
     * @return
     */
    @Override
    public List<InspectedUnitEqu> selectBatchInspectedUnitEqu(String[] ids) {
        return inspectedUnitEquMapper.selectBatchInspectedUnitEqu(ids);
    }

    /**
     * 查询受检单位设备信息列表
     * 
     * @param inspectedUnitEqu 受检单位设备信息
     * @return 受检单位设备信息
     */
    @Override
    public List<InspectedUnitEqu> selectInspectedUnitEquList(InspectedUnitEqu inspectedUnitEqu)
    {
        return inspectedUnitEquMapper.selectInspectedUnitEquList(inspectedUnitEqu);
    }

    /**
     * 新增受检单位设备信息
     * 
     * @param inspectedUnitEqu 受检单位设备信息
     * @return 结果
     */
    @Override
    public int insertInspectedUnitEqu(InspectedUnitEqu inspectedUnitEqu)
    {
        return inspectedUnitEquMapper.insertInspectedUnitEqu(inspectedUnitEqu);
    }

    /**
     * 修改受检单位设备信息
     * 
     * @param inspectedUnitEqu 受检单位设备信息
     * @return 结果
     */
    @Override
    public int updateInspectedUnitEqu(InspectedUnitEqu inspectedUnitEqu)
    {
        return inspectedUnitEquMapper.updateInspectedUnitEqu(inspectedUnitEqu);
    }

    /**
     * 批量删除受检单位设备信息
     * 
     * @param ids 需要删除的受检单位设备信息ID
     * @return 结果
     */
    @Override
    public int deleteInspectedUnitEquByIds(String[] ids)
    {
        return inspectedUnitEquMapper.deleteInspectedUnitEquByIds(ids);
    }

    /**
     * 删除受检单位设备信息信息
     * 
     * @param id 受检单位设备信息ID
     * @return 结果
     */
    @Override
    public int deleteInspectedUnitEquById(String id)
    {
        return inspectedUnitEquMapper.deleteInspectedUnitEquById(id);
    }
}
